<template>
  <button 
    class="fixed top-1 left-1 z-[9999] p-1 bg-blue-100 hover:bg-blue-300 text-white rounded-lg shadow-md transition-colors duration-200 opacity-80 hover:opacity-100"
    @click="$slidev.nav.go(3)"
  >
    返回目录
  </button>
</template>

<script setup>
import { inject } from 'vue'
const nav = inject('nav')
</script>

<style>
.fixed {
  position: fixed !important;
}
.nav-button {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 9999;
}
</style> 